<?php

class AdminUsersController extends Base {
  use CURD;

  public $tableName = 'admin_users';
  protected $deleted_at = false;
  protected $isTree = false;
  protected $likeField = 'name';
  protected $relations = [
    'role_id' => ['table'=>'admin_roles','as'=>'role','pri'=>'id','cols'=>['id','name','slug'],'where'=>[],'type'=>'one'],
  ];

  public function formatListExtra($list){
    foreach ($list as &$value) {
      $value['password'] = '';
    }
    return $list;
  }
  
}
